package com.galengao.springboot.eventlistener.event;

import com.galengao.springboot.eventlistener.dto.SimpleMailDto;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * 发送邮件事件
 *
 * @author galenGao
 * @version Id: MailEvent.java, v 0.1 2022/7/21 20:52  GalenGao Exp $$
 */
@Setter
@Getter
public class MailEvent extends ApplicationEvent {

    private SimpleMailDto simpleMailDto;

    public MailEvent(Object source) {
        super(source);
    }

    public MailEvent(Object source, SimpleMailDto simpleMailDto) {
        super(source);
        this.simpleMailDto = simpleMailDto;
    }
}
